<?php

namespace App\Http\Controllers;

use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;

class Controller extends BaseController
{
    use AuthorizesRequests, DispatchesJobs, ValidatesRequests;

    /**
     * 打印
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return mixed
     */
    public function p($array)
    {
        if(is_array($array)){
            echo "<pre>";print_r($array);echo "</pre>";exit;
        }else{
            return '';
        }
    }

    /**
     * 打印
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return mixed
     */
    public function dump($array)
    {
        if(is_array($array)){
            echo "<pre>";var_dump($array);echo "</pre>";exit;
        }else{
            return '';
        }
    }
}
